package com.app.service;

import com.app.pojo.PaymentRecordsLog;
import com.app.util.Result;
import com.app.vo.AdminHomePageVo;
import com.app.vo.PaymentRecordsLogVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 缴费记录表 服务类
 * </p>
 *
 * @author yoominic
 * @since 2024-07-29
 */
public interface IPaymentRecordsLogService extends IService<PaymentRecordsLog> {



    PaymentRecordsLogVo getPaymentRecordslISTByUserId(String userId, Integer page,Integer limit);


    Object createPayGasOrder(PaymentRecordsLog paymentRecordsLog, Integer userId );

    void parseOrderNotifyResult(String orderId, Double orderAmount);

    void receiveWechatRefundInfo(String outTradeNo, String result);

    /**
     * admin查询缴费记录
     *
     * @param page
     * @param limit
     * @param keyword
     * @param state
     * @return
     */
    Result<Object> paymentRecord(Integer page, Integer limit, String keyword, Integer state);
    /**
     * Admin首页查询缴费总金额
     * @return
     */
    BigDecimal sumMoney();

    /**
     * Admin首页查询近三十天缴费金额
     * @return
     */
    Result<AdminHomePageVo> paymentAmount();
}
